#ifndef _UART_H_
#define _UART_H_

#ifdef _UART_C_
#define _UART_EXT_
#else
#define _UART_EXT_ extern
#endif

#include "stm32f4xx.h" 
#include "datatype.h"

void sys_uart1_init(INT32U bound);
INT8U sys_uart1_getchar(void);
void sys_uart1_sendchar(uint8_t data);

volatile void receive_command(INT8U res);

void get_str(void);
void send_str_prefix(INT8U *str);
void send_str(INT8U *str);
void send_var(INT32U var);
void os_printf(INT8U *str, INT32U var);
INT32U str_to_hex(INT8U *str);



#endif

